#ifndef GFXUNITDEATHFX_H
#define GFXUNITDEATHFX_H

#include "gfxItem.h"
#include <QRectF>
#include <QPainter>

class GFXUnitDeathFX: public GFXItem
{
public:
   explicit GFXUnitDeathFX(ClientEntity *entity=0, QGraphicsItem *parent=0);
   virtual ~GFXUnitDeathFX();
   QRectF boundingRect() const;
   void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
   virtual void tick();

protected:
   QPointF mStart, mEnd;
   QRgb mColor;
   quint8 mAlpha;
};

#endif
